//
//  UserCenterTopCell.m
//  YuBao
//
//  Created by hok on 10/12/15.
//  Copyright © 2015 hok. All rights reserved.
//

#import "UserCenterTopCell.h"

#define Split_Section_Horizontal_Width 12.
@implementation UserCenterTopCell

+ (UINib *)nib
{
    return [UINib nibWithNibName:@"UserCenterTopCell" bundle:nil];
}
+ (CGFloat)height
{
    return 115;
}

- (void)drawRect:(CGRect)rect {
//    // Drawing code
//    UIBezierPath *path = [UIBezierPath bezierPath];
//    // 添加路径[1条点(100,100)到点(200,100)的线段]到path
//    [path moveToPoint:CGPointMake(0 , kUserFaceCellHeight/2)];
//    [path addLineToPoint:CGPointMake([UIScreen mainScreen].bounds.size.width, kUserFaceCellHeight/2)];
//    
//    // 将path绘制出来
//    [UIColorFromRGBA(kTableViewSplitLineColor,1.0) setStroke];
//    [path stroke];
//    
//    
//    
//    [path moveToPoint:CGPointMake(self.bounds.size.width/2 , kUserFaceCellHeight/2 + 3. )];
//    [path addLineToPoint:CGPointMake(self.bounds.size.width/2, self.bounds.size.height - Split_Section_Horizontal_Width - 2.0 - 3.)];
//    
//    
//
//    
//    
//    [path stroke];
//    
//    UIBezierPath *p = [UIBezierPath bezierPath];
//    [p setLineWidth:Split_Section_Horizontal_Width];
//
//
//    [p moveToPoint:CGPointMake(0 , self.bounds.size.height - Split_Section_Horizontal_Width/2 - 2.0)];
//    [p addLineToPoint:CGPointMake(self.bounds.size.width, self.bounds.size.height - Split_Section_Horizontal_Width/2 - 2.0 )];
//     [UIColorFromRGBA(kTableViewSplitLineColor,1.0) setStroke];
//    [p stroke];
    UIBezierPath *path = [UIBezierPath bezierPath];
    [path moveToPoint:CGPointMake(0 , self.bounds.size.height - 1)];
    [path addLineToPoint:CGPointMake([UIScreen mainScreen].bounds.size.width, self.bounds.size.height - 1 )];
    // 将path绘制出来
    [UIColorFromRGBA(kTableViewSplitLineColor,1.0) setStroke];
    [path stroke];
}
- (void)awakeFromNib {
    // Initialization code
   // self.selectionStyle = UITableViewCellSelectionStyleNone;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
